//
//  ZDWalletDetailCell.m
//  特种车调度
//
//  Created by 陈宇 on 15/9/1.
//
//

#import "ZDWalletDetailCell.h"

@interface ZDWalletDetailCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;

@end

@implementation ZDWalletDetailCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setLog:(ZDWalletLog *)log
{
    _log = log;
    _titleLabel.text = [NSString stringWithFormat:@"方量%.1f方", _log.volume];
    _priceLabel.text = [NSString stringWithFormat:@"-%.2f", _log.realsumPrice];
    _dateLabel.text = _log.startTime;
}

@end
